package com.winona.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;

import com.taplinker.client.R;
import com.taplinker.client.R.color;
import com.winona.Base1Activity;

public class ExpertDetailsActivity extends Base1Activity implements
		OnClickListener {
	private TextView title;
	private TextView personal_zhuanjia, personal_meizhen;
	private ListView personal_lv_zhuanjia, personal_lv_menzhen;
	private Button personal_back;
	private Intent intent;
	private View personal_ff_menzhen, personal_ff_zhuanjia;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.personal_details);
		findView();
		title.setText("李利 教授");
		setListener();
	}

	private void setListener() {
		personal_back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				intent = new Intent(ExpertDetailsActivity.this,
						SensitiveActivity.class);
				startActivity(intent);
				overridePendingTransition(R.anim.input, R.anim.out);
			}
		});

	}

	private void findView() {
		title = (TextView) findViewById(R.id.personal_title);
		personal_zhuanjia = (TextView) findViewById(R.id.personal_zhuanjia);
		personal_meizhen = (TextView) findViewById(R.id.personal_meizhen);

		personal_lv_zhuanjia = (ListView) findViewById(R.id.personal_lv_zhuan);
		personal_lv_menzhen = (ListView) findViewById(R.id.personal_lv_men);

		personal_back = (Button) findViewById(R.id.personal_back);

		personal_ff_zhuanjia = findViewById(R.id.personal_ff_zhuanjia);
		personal_ff_menzhen = findViewById(R.id.personal_ff_menzhen);

		personal_zhuanjia.setOnClickListener(this);
		personal_meizhen.setOnClickListener(this);

	}

	public void changeMonthTitle1() {

	}

	public void changeMonthTitle2() {
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.personal_zhuanjia:
			personal_zhuanjia.setBackgroundResource(R.drawable.meizhen);
			personal_meizhen.setBackgroundColor(color.gray);

			personal_ff_zhuanjia.setVisibility(View.VISIBLE);
			personal_ff_menzhen.setVisibility(View.INVISIBLE);

			break;
		case R.id.personal_meizhen:
			personal_meizhen.setBackgroundResource(R.drawable.meizhen);
			personal_zhuanjia.setBackgroundColor(color.gray);

			personal_ff_zhuanjia.setVisibility(View.INVISIBLE);
			personal_ff_menzhen.setVisibility(View.VISIBLE);

			break;

		}

	}

}
